import util from '../util/index';

const baseURL = '';
const urls = {
  // 核心企业列表
  coreEnterpriseList: '/mcht/cust/core/query',
  // 新增核心企业
  addCoreEnterprise: '/mcht/cust/core/create',
  // 编辑核心企业
  updateCoreEnterprise: '/mcht/cust/core/update',
  // 删除核心企业
  deleteCoreEnterprise: (id) => `/mcht/cust/core/delete/${id}`,
  // 经销商列表
  dealerList: '/mcht/cust/agent/query',
  // 新增经销商
  addDealer: '/mcht/cust/agent/create',
  // 修改经销商
  updateDealer: '/mcht/cust/agent/update',
  // 删除一条经销商
  deleteDealer: (id) => `/mcht/cust/agent/delete/${id}`,
  // 经销商模板
  dealerTemplate: '/mcht/cust/excel/download/temp',
  // 导入经销商
  uploadDealer: '/mcht/cust/excel/upload',
  // 经销商采购列表
  dealerPurchaseList: '/mcht/cust/agent/purchase/query',
  // 新增经销商采购信息
  addDealerPurchase: '/mcht/cust/agent/purchase/save',
  // 编辑经销商采购信息
  updateDealerPurchase: '/mcht/cust/agent/purchase/update',
  // 删除一条经销商经销商采购
  deleteDealerPurchase: (id) => `/mcht/cust/agent/purchase/delete/${id}`,
  // 订单列表
  bankOrder: '/pc/web/order/query',
};
util.addPrefix(baseURL, urls);
export default urls;
